package com.b2b.model.entity.company;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


@Data
@Table(name = "company_financial_flow")
@AllArgsConstructor
@NoArgsConstructor
public class CompanyFinancialFlow implements Serializable {
    private static final long serialVersionUID = 3342723124953988435L;

    @Id
    @GeneratedValue(generator = "JDBC")
    @Column(name = "financial_id")
    private Integer financialId;

    @Column(name = "company_id")
    private Integer companyId;

    private String context;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Column(name = "financial_time")
    private Date financialTime;

    @Column(name = "financial_type")
    private String financialType;

    @Column(name = "financial_sum")
    private Float financialSum;

}
